import request from '@/utils/request'

// 查询盘点单子列表
export function listHmzInventoryDetail(query) {
  return request({
    url: '/system/HmzInventoryDetail/list',
    method: 'get',
    params: query
  })
}

// 查询盘点单子详细
export function getHmzInventoryDetail(id) {
  return request({
    url: '/system/HmzInventoryDetail/' + id,
    method: 'get'
  })
}

// 新增盘点单子
export function addHmzInventoryDetail(data) {
  return request({
    url: '/system/HmzInventoryDetail',
    method: 'post',
    data: data
  })
}

// 修改盘点单子
export function updateHmzInventoryDetail(data) {
  return request({
    url: '/system/HmzInventoryDetail',
    method: 'put',
    data: data
  })
}

// 删除盘点单子
export function delHmzInventoryDetail(id) {
  return request({
    url: '/system/HmzInventoryDetail/' + id,
    method: 'delete'
  })
}
